package indi.gao;


/**
 * <p>Description:</p>
 * <p>Copyright: Copyright (c)2020$</p>
 * <p>Company: Tope</p>
 * <P>Created Date :2020$-04$-27$</P>
 * <P>@version 1.0</P>
 */
public class StaticClassTest {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 1000000; i++) {

            test();
        }
        Thread.sleep(1000001L);
    }

    static void test() {
        static1 static1 = new static1();
        static1.age = 100;
        static1 static2 = new static1();
        static2.age = 200;
        System.out.println(static1.hashCode() + "  " + static1.age + "       " + static2.hashCode() + "   " + static2.age + " " + static1.hashCode());
    }

    static class static1 {
        int age;
    }
}
